﻿@model vncom.Models.DanhMucSYS_Edit
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<style type="text/css">
    .border_right
    {
        border-right:1px solid #000000;
        width:20%;
    }
    
    .textArea
    {
        width:100%;
        height:500px;
        font-size:11px;
        font-family:Verdana;
        background-color:#CFECEC;       
    }
    
    #SYS_DanhMuc
    {
        width:100%;
        font-size:11px;
        font-family:Verdana;
        background-color:#CFECEC;
    }
    .left
    {
        width:20%;
    }
</style>
<table style="width: 100%;" border="0" cellpadding="0" cellspacing="3">
    <tr>
        <td valign="top" class="border_right">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr><td><a href="/Administrator/ThietLapTemplate">- Thiết lập template</a></td></tr>
            </table>
        </td>
        <td valign="top">
            @using (Html.BeginForm("DanhmucsysAdd", "Danhmucsys", FormMethod.Post, new { enctype = "multipart/form-data" }))
            {
            <input id="hdTemplateID" name="hdTemplateID" type="hidden" value="@Model.M_TemplateID"/>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="left">
                        Chọn bảng danh mục
                    </td>
                    <td>
                        <select id="SYS_DanhMuc" name="SYS_DanhMuc">
                            @foreach (var item in Model.DanhMucSYS_Lst)
                            {
                                if (item.NameTable == Model.NameTable)
                                {
                                    <option selected="selected" value="@item.NameID">@item.NameTable</option>
                                }
                                else
                                {
                                    <option value="@item.NameID">@item.NameTable</option>
                                }
                            }                            
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="left">Hoạt động</td>
                    <td>@Html.CheckBoxFor(model => model.HoatDong)</td>
                </tr>
                <tr>
                    <td align="center" colspan="2"><input id="submit" type="submit" value="Cập nhật" /></td>
                </tr>
            </table>
            }
        </td>
    </tr>
</table>
